package model

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ StockInModel = (*customStockInModel)(nil)

type (
	// StockInModel is an interface to be customized, add more methods here,
	// and implement the added methods in customStockInModel.
	StockInModel interface {
		stockInModel
	}

	customStockInModel struct {
		*defaultStockInModel
	}
)

// NewStockInModel returns a model for the database table.
func NewStockInModel(conn sqlx.SqlConn, c cache.CacheConf) StockInModel {
	return &customStockInModel{
		defaultStockInModel: newStockInModel(conn, c),
	}
}
